﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NiceManage.Common
{
    public class ResultEntity<T> where T:class
    {
        public ResultEntity()
        {
            this.code = 0;
            this.msg = "OK";
        }
        public int code { get; set; }
        public string msg { get; set; }
        public int count { get; set; }
        public List<T> data { get; set; }
        public ResultEntity<T> OK()
        {
            return new ResultEntity<T>();
        }
        //public string data { get; set; }
    }
}
